package com.fzl.spring_chatroom.model.mapper;

import com.fzl.spring_chatroom.model.response.MessageResponse;
import org.apache.ibatis.annotations.Mapper;
import com.fzl.spring_chatroom.model.dao.Message;

import java.util.List;

@Mapper
public interface MessageMapper {
    String getLastMessageBySessionId(Integer sessionId);

    List<MessageResponse> getMessageBySessionId(Integer sessionId);

    int insertMessage(Message message);
}
